home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 September / macformat-041.iso / mac / Shareware City / Graphics / MacSPD / Sources / README.MAC < prev    next >
Encoding:
Text File  |  1995-04-22  |  7.3 KB  |  190 lines  |  [TEXT/MMCC]

  1. SPD Update 3.6 - April 3, 1995
  2. ==============================
  3.  
  4. Macintosh SPD
  5. Document by Eduard Schwan (71513.2161@compuserve.com)
  6.  
  7. [The Macintosh version is no longer distributed with the regular SPD, but is
  8. in its own SIT file.  I leave these notes here FYI. - EAH]
  9.  
  10. Introduction
  11. ------------
  12.  
  13. SPD is a suite of raytracer scene generators, which can be used as benchmark
  14. databases for timing tests.  For a full description, see the file README.
  15.  
  16. The SPD source code is being distributed as "Public Domain".  These Macintosh
  17. applications are also being distributed as public domain, no copyrights, no
  18. guarantees, no restrictions on their use or distribution.
  19.  
  20. The Macintosh port of SPD contained in the archive MACSPD.SIT contains
  21. the SPD Mac Source code (for Symantec C, MPW C, Metrowerks) and the SPD
  22. Mac Applications ready to run.
  23.  
  24. There are also IBM PC versions of these archives available.
  25.  
  26. This document will describe the Macintosh-specific information for these
  27. SPD archives.
  28.  
  29. These Mac programs were written to be very simple.  There are no frills, and
  30. not much error checking.  They are meant to quickly crank out source files for
  31. raytracers.  Specifically, the "Display to Screen" code for the Macintosh is
  32. not very robust.  It works as a simple previewer on color Macintoshes, but it
  33. does not buffer offscreen, nor does it check for Color Quickdraw unless
  34. calling the screen display routines.  Be forewarned!  :-)
  35.  
  36.  
  37. Requirements
  38. ------------
  39.  
  40. The software requires a minimum Macintosh hardware and software configuration
  41. to run:
  42. - System 7.0 or later.
  43. - 68020 or higher CPU, does not require an FPU (Mac LC and Centris work
  44.   fine.)  Not PowerMac native.
  45. - At least 4 MB RAM is recommended, leaving 1.5 MB RAM for the application.
  46. - Color Quickdraw*.
  47.  
  48. * Color QuickDraw is not required if writing to an output file, only if
  49.   displaying the image to the screen.
  50.  
  51.  
  52. Features
  53. --------
  54.  
  55. The Mac SPD is relatively MultiFinder friendly, letting you switch out on
  56. large file generations.  SPD will continue to work in the background.
  57. However, please see the Bugs section for some cosmetic annoyances with
  58. switching out.  It is a straight Macintosh application, with an initial
  59. dialog box to gather input (i.e. command line) information.
  60.  
  61.  
  62. How to Use
  63. ----------
  64.  
  65. To run any one of the SPD applications:
  66. (1) Double-click the application you want to run.
  67. (2) Select the output raytracer format from the popup menu.
  68. (3) Type in a number for the size,
  69.     -or-
  70.     Select an input file for the READxxx style applications.
  71. (4) Click the OK button, and the scene will be generated.
  72.     - If it is to the screen, the scene will be displayed immediately, in a
  73.       window.
  74.     - If it is for a specific raytracer, it will create a textfile in the
  75.       same folder as the application, called APPNAME.out (e.g., the
  76.       application "rings" would create a file called "rings.out".)
  77. (5) Now run your favorite raytracer, and display and time the image.
  78.  
  79. NOTE:  POV-Ray Macintosh 2.x cannot open main scene files larger than 32k bytes,
  80. and many SPD files will be much bigger than this.  To get around this, create
  81. a small POV-Ray file whose sole purpose in life is to include the large .OUT
  82. file (e.g.  create "rings.pov" which simply includes rings.out.)  If you want
  83. to edit the .OUT file, you will need to use a "real" text editor or word
  84. processor that doesn't have the 32k limitation.
  85.  
  86.  
  87. Bugs
  88. ----
  89.  
  90. MacSPD does not set the file creator to anything useful.  The output file is
  91. indeed of type text, but is owned by Metrowerks. As a generic text file,
  92. you should probably not double-click it to open it.  Instead drag-n-drop it
  93. on your favorite word processor, or run the word processor and open it from
  94. the file menu.
  95.  
  96. If you switch out while drawing to the screen, and then switch back, the
  97. image display window is not refreshed.
  98.  
  99. Low memory conditions are not gracefully handled.  If you get an error, try
  100. increasing the application memory size from the Finder's "Get Info" window.
  101.  
  102. Color Quickdraw is not explicitly checked for on program startup.  If your run
  103. an SPD program on a non-Color Quickdraw Mac, it will run OK as long as you
  104. write to a file, but if you try to display to the screen, it will show an error
  105. dialog and quit.
  106.  
  107.  
  108. Notes
  109. -----
  110.  
  111. Larger size values may require that you increase the Application Memory Size.
  112. If you have limited memory and only want to create small sized files, you can
  113. get away with lowering the Application Memory Size, probably down to about 800K.
  114.  
  115. Currently, the only raytracers I know about for the Macintosh that the SPD
  116. programs support are:
  117.   POV-Ray
  118.   RTrace
  119.   RayShade
  120.   Renderman
  121. The Macintosh versions of these raytracers can be found on the internet (ask
  122. Eric Haines at erich@eye.com for addresses), and POV-Ray can also be found on
  123. CompuServe (GO GRAPHDEV) and on America Online (Keyword:PGR, Company Support.)
  124. MacRenderman is a commercial application, and is available from Pixar.
  125.  
  126.  
  127. Source Notes
  128. ------------
  129.  
  130. MPW:
  131. To compile under MPW 3.x, just type the following:
  132.   BuildProgram MacSPD
  133. That's it, every program will be created.
  134.  
  135. Symantec:
  136. To compile under Symantec C 7.x, you will need to create a project for each
  137. app.  An empty project file for the Balls application is supplied, ready to
  138. go.  To create the other project files, just duplicate this project file &
  139. rename it for the next application, then remove the "balls.c" source file and
  140. add the new source file in its place.  Compile the project and change its
  141. output application file name from "Balls" to the new application name. For
  142. example, to create the "Gears" application, do the following:
  143. 1. Duplicate Balls.π, and rename the copy to Gears.π
  144. 2. Open Gears.π, Remove the "balls.c" file, and Add the "gears.c" file
  145. 3. Build the Application, and when prompted for an app. file, type Gears
  146. 4. Do steps 1 through 3 for each application (balls, gears, lattice, mount,
  147.    readdxf, readnff, readobj, rings, sample, shells, sombrero, teapot, tetra,
  148.    tree)
  149. Note that I have created an "ANSI-NoConsole" library for these to link to.
  150. You will need to do the same.  Instructions on how to do this are in the
  151. Symantec manual, sorry for the cop-out on instructions.
  152. The project info is:
  153.   Creator: SPDm
  154.   Partition: 800K
  155.   Size Flags: 58C0
  156.   Separate Strs: ON
  157.  
  158. Metrowerks:
  159. I've created an empty CW 5.5 project for each application.  You should be able
  160. to open each project, and "Make" it, creating the applications.
  161.  
  162.  
  163. Credits & Information
  164. ---------------------
  165.  
  166. Eric Haines wrote the original SPD software.
  167.  
  168. Alexander Enzmann added the additional Raytracer support and did the original
  169. port to the IBM PC and the Macintosh (in Think C 5.)  He also created the
  170. SAMPLE and READDXF (was showdxf) data bases.
  171.  
  172. Eduard Schwan updated the Macintosh code to work with MPW C as well as
  173. Symantec C 6 & 7 and Metrowerks CodeWarrior, added the initial dialog box to
  174. prompt for the "command line parameters", added the READNFF database, and
  175. created the PLATFORM_XXX stuff to make the code even more portable, and broke
  176. the lib.c file into several smaller pieces so as to be more grokkable by
  177. humans and toy Symantec compilers.
  178.  
  179. If you have any comments, questions or bug reports for the Macintosh version
  180. of these applications, please feel free to contact me.  General questions on
  181. SPD should be directed to the original author, Eric Haines.
  182.  
  183. Enjoy!
  184.  
  185. Eduard [esp] Schwan
  186.   CompuServe: 71513,2161
  187.     internet: 71513.2161@compuserve.com
  188.  
  189. [eof]
  190.